{% extends 'generic/object_detail.html' %}
{% load helpers %}

{% block extra_breadcrumbs %}
                <li><a href="{{ object.site.get_absolute_url }}">{{ object.site }}</a></li>
                {% if object.rack_group %}
                    <li><a href="{{ object.rack_group.get_absolute_url }}">{{ object.rack_group }}</a></li>
                {% endif %}
{% endblock extra_breadcrumbs %}

{% block content_left_page %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>Power Panel</strong>
            </div>
            <table class="table table-hover panel-body attr-table">
                <tr>
                    <td>Site</td>
                    <td>
                        <a href="{{ object.site.get_absolute_url }}">{{ object.site }}</a>
                    </td>
                </tr>
                <tr>
                    <td>Rack Group</td>
                    <td>
                        {% if object.rack_group %}
                            <a href="{{ object.rack_group.get_absolute_url }}">{{ object.rack_group }}</a>
                        {% else %}
                            <span class="text-muted">None</span>
                        {% endif %}
                    </td>
                </tr>
            </table>
        </div>
{% endblock content_left_page %}

{% block content_full_width_page %}
        {% include 'panel_table.html' with table=powerfeed_table heading='Connected Feeds' %}
{% endblock content_full_width_page %}
